import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Observable;
import javax.swing.SwingUtilities;
import java.util.Scanner;

public class ConfigCPNclass implements Runnable
{
    
                public void ConfigCPNgui(){};
                public ConfigCPNgui gui = new ConfigCPNgui();
		//Declare references
		private String sAXLSOAPRequest = null;         	/*will hold the complete request*/
                private String host;	  					/* HTTP header and SOAP payload*/
		private String firstThree;
		private String node;
		private String sAXLRequest = null;            	/* will hold only the SOAP payload*/
		private Socket socket = null;                 	/* socket to AXL server*/
		private OutputStream out = null;             	/* output stream to server*/
		private InputStream in = null;                	/* input stream from server*/
		private byte[] bArray = null;                 	/* buffer for reading response from server*/
		private String uidpwd;
		private String devicePooluuid = null;
		                
                public ConfigCPNclass (){}
		
		public ConfigCPNclass(String h, String f, String n, String u, String p)
		{   	
                host = h;	  					
		firstThree = f;
		node = n;                 	
		uidpwd = u+ ":" +p;
		}
		
		public void setCredentials (String user, String pass)
		{
			uidpwd = user+ ":" +pass;
		}
		
		public void setHost (String ipAddress)
		{
			host = ipAddress;
		}
                
                
                
		
		public void connectAXL (String request)
		{
		// now that the message has been built, we can connect to server and send it 
			try 
			{
			socket = new Socket(host, 80);
			out = socket.getOutputStream();
			in = socket.getInputStream();
			
			// send the request to the host
			out.write(request.getBytes());
			
			// read the response from the host
			StringBuffer sb = new StringBuffer(10000);
			bArray = new byte[10000];
			int ch = 0;
			int sum = 0;
			
			// output the response to the standard out
			while ( (ch = in.read(bArray)) != -1 )
			{
				sum += ch;
				sb.append(new String(bArray, 0, ch));		
			}
			
			socket.close();
			
                           
			// output the response to the standard out
			System.out.println(sb.toString());
			} 
		
			catch (UnknownHostException e) 
			{
				System.err.println("Error connecting to host: " + e.getMessage());
			} 
		
			catch (IOException ioe)
			{
				System.err.println("Error sending/receiving from server: " + ioe.getMessage());
			
				// close the socket
				try
				{
					if (socket != null) socket.close();
				} 
			
				catch (Exception exc)
				{
					System.err.println("Error closing connection to server: " + exc.getMessage());
				}
			}
		}
		
		public void addCallManager ()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCallManager xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newCallManager>";
			sAXLRequest += "<name>"+host+"</name>";
			sAXLRequest += "<description>"+host+"</description>";
			sAXLRequest += "<autoRegistration>";
			sAXLRequest += "<startDN>"+node+"00</startDN>";
			sAXLRequest += "<endDN>"+node+"99</endDN>";
//THIS DN RANGE ONLY ASSUMES CPN NUMBERING SCHEME//
			sAXLRequest += "<nextDN>"+node+"03</nextDN>";
			sAXLRequest += "<e164Mask></e164Mask>";
			sAXLRequest += "</autoRegistration>";
			sAXLRequest += "<ports>";
			sAXLRequest += "<analogAccessPort>2002</analogAccessPort>";
			sAXLRequest += "<digitalAccessPort>2001</digitalAccessPort>";
			sAXLRequest += "<ethernetPhonePort>2000</ethernetPhonePort>";
			sAXLRequest += "<mgcpPorts>";
			sAXLRequest += "<listen>2427</listen>";
			sAXLRequest += "<keepAlive>2428</keepAlive>";
			sAXLRequest += "</mgcpPorts>";
			sAXLRequest += "</ports>";
			sAXLRequest += "<processNodeName>"+host+"</processNodeName>";
			sAXLRequest += "</newCallManager>";
			
			sAXLRequest += "</axl:addCallManager></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			// Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
		
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);		
		}
                
                public void updateServiceParameterMaxAXLWritesPerMinute()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>MaxAXLWritesPerMinute</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco Database Layer Monitor</service>";
			sAXLRequest += "<newValue>200</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterDSCPForSCCPPhoneConfig()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>DSCPForSCCPPhoneConfig</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Enterprise Wide</service>";
			sAXLRequest += "<newValue>160</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterDSCPForCm2Dvce()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>DSCPForCm2Dvce</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Enterprise Wide</service>";
			sAXLRequest += "<newValue>160</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterMLPPIndicationStatus()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>MLPPIndicationStatus</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Enterprise Wide</service>";
			sAXLRequest += "<newValue>On</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterTimerT302_msec()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>TimerT302_msec</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>4000</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterTimerT305_msec()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>TimerT305_msec</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>6000</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterToSendH225UserInfoMsg()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>ToSendH225UserInfoMsg</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>2</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterCallClassification()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>CallClassification</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>0</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterEnableLocationMLPP()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>EnableLocationMLPP</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>T</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterMaxAdHocConference()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>MaxAdHocConference</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>20</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterMaxMeetMeConferenceUnicast()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>MaxMeetMeConferenceUnicast</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>20</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterDSCPForVideoCalls()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>DSCPForVideoCalls</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>152</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void updateServiceParameterDSCPforICCP()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:updateServiceParameter xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<name>DSCPforICCP</name>";
			sAXLRequest += "<processNodeName>EnterpriseWideData</processNodeName>";
			sAXLRequest += "<service>Cisco CallManager</service>";
			sAXLRequest += "<newValue>160</newValue>";
			sAXLRequest += "</axl:updateServiceParameter></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
//IF ADDING AND NOT MODIFYING WE NEED TO DELETE DEFAULT REGION//              
		public void add711Region()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRegion xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest +=  "<newRegion>";
			sAXLRequest +=  "<name>G.711 Region</name>";
			sAXLRequest +=  "<relatedRegions>";
			sAXLRequest +=  "<relatedRegion>";
			sAXLRequest +=  "<name>G.711 Region</name>";
			sAXLRequest +=  "<bandwidth>G.711</bandwidth>";
			sAXLRequest +=  "<videoBandwidth>200</videoBandwidth>";
			sAXLRequest +=  "</relatedRegion>";
			sAXLRequest +=  "</relatedRegions>";
			sAXLRequest +=  "</newRegion>";
			
			sAXLRequest += "</axl:addRegion></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void add729Region()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRegion xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest +=  "<newRegion>";
			sAXLRequest +=  "<name>G.729 Region</name>";
			sAXLRequest +=  "<relatedRegions>";
			sAXLRequest +=  "<relatedRegion>";
			sAXLRequest +=  "<name>G.711 Region</name>";
			sAXLRequest +=  "<bandwidth>G.729</bandwidth>";
			sAXLRequest +=  "<videoBandwidth>200</videoBandwidth>";
			sAXLRequest +=  "</relatedRegion>";
			sAXLRequest +=  "<relatedRegion>";
			sAXLRequest +=  "<name>G.729 Region</name>";
			sAXLRequest +=  "<bandwidth>G.729</bandwidth>";
			sAXLRequest +=  "<videoBandwidth>200</videoBandwidth>";
			sAXLRequest +=  "</relatedRegion>";
			sAXLRequest +=  "</relatedRegions>";
			sAXLRequest +=  "<defaultCodec>G.729</defaultCodec>";
			sAXLRequest +=  "</newRegion>";
			
			sAXLRequest += "</axl:addRegion></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTranscoder()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTranscoder xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest +=  "<newTranscoder>";
			sAXLRequest +=  "<name>xcode001</name>";
			sAXLRequest +=  "<description>xcode001</description>";
			sAXLRequest +=  "<product>Cisco IOS Enhanced Media Termination Point</product>";
			sAXLRequest +=  "<devicePoolName>G.711 Device Pool</devicePoolName>";
			sAXLRequest +=  "<loadInformation  special=\"false\"></loadInformation>";
			sAXLRequest +=  "<vendorConfig>";
			sAXLRequest +=  "</vendorConfig>";
			sAXLRequest +=  "<maximumCapacity>0</maximumCapacity>";
			sAXLRequest +=  "</newTranscoder>";
			
			sAXLRequest += "</axl:addTranscoder></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
//MOHSERVER IS AUTOGENERATED - NEED TO MODIFY//
                public void addMOHServer()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMOHServer xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest +=  "<newMOHServer>";
			sAXLRequest += "<mohServerName>MOH_"+firstThree+"</mohServerName>";
			sAXLRequest += "<description>MOH_"+firstThree+"</description>";
			sAXLRequest += "<processNodeName>"+host+"</processNodeName>";
			sAXLRequest += "<devicePoolName>G.711 Device Pool</devicePoolName>";
			sAXLRequest += "<maxUnicastConnections>250</maxUnicastConnections>";
			sAXLRequest += "<maxMulticastConnections>30</maxMulticastConnections>";
			sAXLRequest += "<fixedAudioSourceDevice></fixedAudioSourceDevice>";
			sAXLRequest += "<runFlag>true</runFlag>";
			sAXLRequest +=  "</newMOHServer>";
			
			sAXLRequest += "</axl:addMOHServer></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void add711MediaResourceList()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceList xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newMediaResourceList>";
			sAXLRequest += "<name>G.711 MRGL</name>";
			sAXLRequest += "<clause>XCODE_MRG:MTP_SOFT_MRG:MTP_IOS_MRG:ANN_MRG:CFB_MRG:MOH_MRG</clause>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member order=\"1\">";
			sAXLRequest += "<mediaResourceGroupName>XCODE_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"2\">";
			sAXLRequest += "<mediaResourceGroupName>MTP_IOS_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"3\">";
			sAXLRequest += "<mediaResourceGroupName>MTP_SOFT_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"4\">";
			sAXLRequest += "<mediaResourceGroupName>ANN_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"5\">";
			sAXLRequest += "<mediaResourceGroupName>CFB_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"6\">";
			sAXLRequest += "<mediaResourceGroupName>MOH_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceList>";
			
			sAXLRequest += "</axl:addMediaResourceList></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void add729MediaResourceList()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceList xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newMediaResourceList>";
			sAXLRequest += "<name>G.729 MRGL</name>";
			sAXLRequest += "<clause>MTP_IOS_MRG:XCODE-MRG:MTP_SOFT_MRG:ANN-MRG:CFB_MRG:MOH_MRG</clause>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member order=\"1\">";
			sAXLRequest += "<mediaResourceGroupName>MTP_IOS_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"2\">";
			sAXLRequest += "<mediaResourceGroupName>XCODE_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"3\">";
			sAXLRequest += "<mediaResourceGroupName>MTP_SOFT_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"4\">";
			sAXLRequest += "<mediaResourceGroupName>ANN_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"5\">";
			sAXLRequest += "<mediaResourceGroupName>CFB_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member order=\"6\">";
			sAXLRequest += "<mediaResourceGroupName>MOH_MRG</mediaResourceGroupName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceList>";
			
			sAXLRequest += "</axl:addMediaResourceList></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		
		public void addTDMALocation()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addLocation xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newLocation>";
			sAXLRequest += "<name>TDMA</name>";
			sAXLRequest += "<id>1</id>";
			sAXLRequest += "<kbits>480</kbits>";
			sAXLRequest += "<videoKbits>200</videoKbits>";
			sAXLRequest += "</newLocation>";

			sAXLRequest += "</axl:addLocation></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addFDMALocation()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addLocation xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newLocation>";
			sAXLRequest += "<name>FDMA</name>";
			sAXLRequest += "<id>2</id>";
			sAXLRequest += "<kbits>480</kbits>";
			sAXLRequest += "<videoKbits>200</videoKbits>";
			sAXLRequest += "</newLocation>";
						
			sAXLRequest += "</axl:addLocation></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addLOSLocation()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addLocation xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newLocation>";
			sAXLRequest += "<name>LOS</name>";
			sAXLRequest += "<id>3</id>";
			sAXLRequest += "<kbits>480</kbits>";
			sAXLRequest += "<videoKbits>200</videoKbits>";
			sAXLRequest += "</newLocation>";
			
			sAXLRequest += "</axl:addLocation></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addPrecFOCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>PREC_FO</name>";
			sAXLRequest += "<description>Flash Override Precedence</description>";
			sAXLRequest += "<clause>SET_FO:SET_F:SET_I:SET_P:SET_R</clause>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_FO</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_F</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_I</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_P</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>SET_R</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addPrecFCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>PREC_F</name>";
			sAXLRequest += "<description>Flash Precedence</description>";
			sAXLRequest += "<clause>SET_F:SET_I:SET_P:SET_R:BLOCK</clause>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_F</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_I</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_P</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_R</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"5\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
				
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addPrecICSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>PREC_I</name>";
			sAXLRequest += "<description>Immediate Precedence</description>";
			sAXLRequest += "<clause>SET_I:SET_P:SET_R:BLOCK</clause>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_I</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_P</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_R</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"4\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addPrecPCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>PREC_P</name>";
			sAXLRequest += "<description>Priority Precedence</description>";
			sAXLRequest += "<clause>SET_P:SET_R:BLOCK</clause>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_P</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_R</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"3\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";	
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addPrecRCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>PREC_R</name>";
			sAXLRequest += "<description>Routines Precedence</description>";
			sAXLRequest += "<clause>SET_R:BLOCK</clause>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_R</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";	
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void add9094CSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>90-94_Routes</name>";
			sAXLRequest += "<description>Precedence Routes</description>";
			sAXLRequest += "<clause>90-94_Routes</clause>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>90-94_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";	
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
	
		public void add711DevicePool()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addDevicePool xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newDevicePool>";
			sAXLRequest += "<name>G.711 Device Pool</name>";
			sAXLRequest += "<dateTimeSettingName>CMLocal</dateTimeSettingName>";
			sAXLRequest += "<callManagerGroupName>Default</callManagerGroupName>";
			sAXLRequest += "<regionName>G.711 Region</regionName>";
			sAXLRequest += "<networkLocale></networkLocale>";
			sAXLRequest += "<srstName>Disable</srstName>";
			sAXLRequest += "<connectionMonitorDuration>120</connectionMonitorDuration>";
			sAXLRequest += "<revertPriority>Default</revertPriority>";
			sAXLRequest += "</newDevicePool>;";
			
			sAXLRequest += "</axl:addDevicePool></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// now that the message has been built, we can connect to server and send it 
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void add729DevicePool()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addDevicePool xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest +="<newDevicePool>";
			sAXLRequest += "<name>G.729 Device Pool</name>";
			sAXLRequest += "<dateTimeSettingName>CMLocal</dateTimeSettingName>";
			sAXLRequest += "<callManagerGroupName>Default</callManagerGroupName>";
			sAXLRequest += "<regionName>G.729 Region</regionName>";
			sAXLRequest += "<networkLocale></networkLocale>";
			sAXLRequest += "<srstName>Disable</srstName>";
			sAXLRequest += "<connectionMonitorDuration>120</connectionMonitorDuration>";
			sAXLRequest += "<revertPriority>Default</revertPriority>";
			sAXLRequest += "</newDevicePool>;";
			
			sAXLRequest += "</axl:addDevicePool></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// now that the message has been built, we can connect to server and send it 
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
//CONFERENCEBRIDGE IS AUTO GENERATED - MODIFY??//
		public void addConferenceBridge()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addConferenceBridge xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<newCFB>";
			sAXLRequest += "<name>CFB_"+firstThree+"</name>";
			sAXLRequest += "<description>CFB_"+firstThree+"</description>";
			sAXLRequest += "<product>Cisco Conference Bridge Software</product>";
			sAXLRequest += "<devicePoolName>G.711 Device Pool</devicePoolName>";
			sAXLRequest += "<processNodeName>"+host+"</processNodeName>";
			sAXLRequest += "<loadInformation  special=\"false\"></loadInformation>";
			sAXLRequest += "<maximumCapacity>96</maximumCapacity>";
			sAXLRequest += "</newCFB>;";
			
			sAXLRequest += "</axl:addConferenceBridge></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addCFBMediaResourceGroup()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceGroup xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
						
			sAXLRequest += "<newMediaResourceGroup>";
			sAXLRequest += "<name>CFB_MRG</name>";
			sAXLRequest += "<description>CFB_MRG</description>";
			sAXLRequest += "<multicast>false</multicast>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member>";
			sAXLRequest += "<deviceName>CFB_"+firstThree+"</deviceName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceGroup>";
			
			sAXLRequest += "</axl:addMediaResourceGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addMOHMediaResourceGroup()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceGroup xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
						
			sAXLRequest += "<newMediaResourceGroup>";
			sAXLRequest += "<name>MOH_MRG</name>";
			sAXLRequest += "<description>MOH_MRG</description>";
			sAXLRequest += "<multicast>false</multicast>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member>";
			sAXLRequest += "<deviceName>MOH_"+firstThree+"</deviceName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceGroup>";
			
			sAXLRequest += "</axl:addMediaResourceGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addXCodeMediaResourceGroup()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceGroup xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
						
			sAXLRequest += "<newMediaResourceGroup>";
			sAXLRequest += "<name>XCODE_MRG</name>";
			sAXLRequest += "<description>XCODE_MRG</description>";
			sAXLRequest += "<multicast>false</multicast>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member>";
			sAXLRequest += "<deviceName>xcode001</deviceName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceGroup>";
			
			sAXLRequest += "</axl:addMediaResourceGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addMTPIOSMediaResourceGroup()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceGroup xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
						
			sAXLRequest += "<newMediaResourceGroup>";
			sAXLRequest += "<name>MTP_IOS_MRG</name>";
			sAXLRequest += "<description>MTP_IOS_MRG</description>";
			sAXLRequest += "<multicast>false</multicast>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member>";
			sAXLRequest += "<deviceName>mtp001</deviceName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceGroup>";
                        
			sAXLRequest += "</axl:addMediaResourceGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addMTPSOFTMediaResourceGroup()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceGroup xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
						
			sAXLRequest += "<newMediaResourceGroup>";
			sAXLRequest += "<name>MTP_SOFT_MRG</name>";
			sAXLRequest += "<description>MTP_SOFT_MRG</description>";
			sAXLRequest += "<multicast>false</multicast>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member>";
			sAXLRequest += "<deviceName>MTP_"+firstThree+"</deviceName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceGroup>";
			
			sAXLRequest += "</axl:addMediaResourceGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addANNMediaResourceGroup()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addMediaResourceGroup xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
						
			sAXLRequest += "<newMediaResourceGroup>";
			sAXLRequest += "<name>ANN_MRG</name>";
			sAXLRequest += "<description>ANN_MRG</description>";
			sAXLRequest += "<multicast>false</multicast>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member>";
			sAXLRequest += "<deviceName>ANN_"+firstThree+"</deviceName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newMediaResourceGroup>";	
			
			sAXLRequest += "</axl:addMediaResourceGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void add9094RoutePartition()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>90-94_Routes</name>";
			sAXLRequest += "<description>90-94_Routes</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";
			
			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
			
		public void addBlockRoutePartition()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";

			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>BLOCK</name>";
			sAXLRequest += "<description>BLOCK</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";

			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}	
		
		public void addSetFRoutePartition()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>SET_F</name>";
			sAXLRequest += "<description>SET_F</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";

			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addSetFORoutePartition()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";

			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>SET_FO</name>";
			sAXLRequest += "<description>SET_FO</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";

			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addSetIRoutePartition()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>SET_I</name>";
			sAXLRequest += "<description>SET_I</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";

			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addSetPRoutePartition()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>SET_P</name>";
			sAXLRequest += "<description>SET_P</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";

			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addSetRRoutePartition()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";

			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>SET_R</name>";
			sAXLRequest += "<description>SET_R</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";
			
			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addH323Trunk (String remoteHost, String remoteNode, String nodeNum, String c, String H323TrunkCSS)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addH323Trunk xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";			
			
			sAXLRequest += "<newTrunk>";
			sAXLRequest += "<name>"+remoteNode+"_"+nodeNum+"_"+c+"CMX</name>";
			sAXLRequest += "<description>"+remoteNode+"_"+nodeNum+"_"+c+"CMX</description>";
			sAXLRequest += "<product>Inter-Cluster Trunk (Non-Gatekeeper Controlled)</product>";
			sAXLRequest += "<model>Trunk</model>";
			sAXLRequest += "<class>Trunk</class>";
			sAXLRequest += "<protocol>Inter-Cluster Trunk</protocol>";
			sAXLRequest += "<protocolSide>Network</protocolSide>";
			sAXLRequest += "<callingSearchSpaceName>"+H323TrunkCSS+"</callingSearchSpaceName>";
			sAXLRequest += "<devicePoolName>G.729 Device Pool</devicePoolName>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<locationName>TDMA</locationName>";
			sAXLRequest += "<networkHoldMOHAudioSourceId>0</networkHoldMOHAudioSourceId>";
			sAXLRequest += "<userHoldMOHAudioSourceId>0</userHoldMOHAudioSourceId>";
			sAXLRequest += "<loadInformation  special=\"false\"></loadInformation>";
			sAXLRequest += "<versionStamp>{2B091465-F1E2-467F-A872-7C6C029FC2C1}</versionStamp>";
			sAXLRequest += "<traceFlag>false</traceFlag>";
			sAXLRequest += "<mlppDomainId>-1</mlppDomainId>";
			sAXLRequest += "<mlppIndicationStatus>Default</mlppIndicationStatus>";
			sAXLRequest += "<preemption>Disabled</preemption>";
			sAXLRequest += "<retryVideoCallAsAudio>true</retryVideoCallAsAudio>";
			sAXLRequest += "<waitForFarEndH245TerminalSet>false</waitForFarEndH245TerminalSet>";
			sAXLRequest += "<mtpRequired>false</mtpRequired>";
			sAXLRequest += "<callerIdDN></callerIdDN>";
			sAXLRequest += "<callingPartySelection>Originator</callingPartySelection>";
			sAXLRequest += "<callingLineIdPresentation>Default</callingLineIdPresentation>";
			sAXLRequest += "<displayIEDelivery>true</displayIEDelivery>";
			sAXLRequest += "<redirectOutboundNumberIE>true</redirectOutboundNumberIE>";
			sAXLRequest += "<redirectInboundNumberIE>true</redirectInboundNumberIE>";
			sAXLRequest += "<enableInboundFaststart>false</enableInboundFaststart>";
			sAXLRequest += "<enableOutboundFaststart>false</enableOutboundFaststart>";
			sAXLRequest += "<codecForOutboundFaststart>G711 u-law 64K</codecForOutboundFaststart>";
			sAXLRequest += "<significantDigits  enable=\"false\">99</significantDigits>";
			sAXLRequest += "<calledPartyIENumberType>Cisco CallManager</calledPartyIENumberType>";
			sAXLRequest += "<callingPartyIENumberType>Cisco CallManager</callingPartyIENumberType>";
			sAXLRequest += "<calledNumberingPlan>Cisco CallManager</calledNumberingPlan>";
			sAXLRequest += "<callingNumberingPlan>Cisco CallManager</callingNumberingPlan>";
			sAXLRequest += "<tunneledProtocol>None</tunneledProtocol>";
			sAXLRequest += "<pathReplacementSupport>false</pathReplacementSupport>";
			sAXLRequest += "<remoteServerInfo>";
			sAXLRequest += "<server1>"+remoteHost+"</server1>";
			sAXLRequest += "</remoteServerInfo>";
			sAXLRequest += "<ictPassingPrecedenceLevelThroughUUIE>true</ictPassingPrecedenceLevelThroughUUIE>";
			sAXLRequest += "<ictSecurityAccessLevel>2</ictSecurityAccessLevel>";
			sAXLRequest += "</newTrunk>";
			
			sAXLRequest += "</axl:addH323Trunk></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
                public void addH323TrunkSRST (String remoteHost, String remoteNode, String nodeNum, String c, String H323TrunkCSS)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addH323Trunk xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";			
			
			sAXLRequest += "<newTrunk>";
			sAXLRequest += "<name>"+remoteNode+"_"+nodeNum+"_"+c+"CMX-SRST</name>";
			sAXLRequest += "<description>"+remoteNode+"_"+nodeNum+"_"+c+"CMX-SRST</description>";
			sAXLRequest += "<product>Inter-Cluster Trunk (Non-Gatekeeper Controlled)</product>";
			sAXLRequest += "<model>Trunk</model>";
			sAXLRequest += "<class>Trunk</class>";
			sAXLRequest += "<protocol>Inter-Cluster Trunk</protocol>";
			sAXLRequest += "<protocolSide>Network</protocolSide>";
			sAXLRequest += "<callingSearchSpaceName>"+H323TrunkCSS+"</callingSearchSpaceName>";
			sAXLRequest += "<devicePoolName>G.729 Device Pool</devicePoolName>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<locationName>TDMA</locationName>";
			sAXLRequest += "<networkHoldMOHAudioSourceId>0</networkHoldMOHAudioSourceId>";
			sAXLRequest += "<userHoldMOHAudioSourceId>0</userHoldMOHAudioSourceId>";
			sAXLRequest += "<loadInformation  special=\"false\"></loadInformation>";
			sAXLRequest += "<versionStamp>{2B091465-F1E2-467F-A872-7C6C029FC2C1}</versionStamp>";
			sAXLRequest += "<traceFlag>false</traceFlag>";
			sAXLRequest += "<mlppDomainId>-1</mlppDomainId>";
			sAXLRequest += "<mlppIndicationStatus>Default</mlppIndicationStatus>";
			sAXLRequest += "<preemption>Disabled</preemption>";
			sAXLRequest += "<retryVideoCallAsAudio>true</retryVideoCallAsAudio>";
			sAXLRequest += "<waitForFarEndH245TerminalSet>false</waitForFarEndH245TerminalSet>";
			sAXLRequest += "<mtpRequired>false</mtpRequired>";
			sAXLRequest += "<callerIdDN></callerIdDN>";
			sAXLRequest += "<callingPartySelection>Originator</callingPartySelection>";
			sAXLRequest += "<callingLineIdPresentation>Default</callingLineIdPresentation>";
			sAXLRequest += "<displayIEDelivery>true</displayIEDelivery>";
			sAXLRequest += "<redirectOutboundNumberIE>true</redirectOutboundNumberIE>";
			sAXLRequest += "<redirectInboundNumberIE>true</redirectInboundNumberIE>";
			sAXLRequest += "<enableInboundFaststart>false</enableInboundFaststart>";
			sAXLRequest += "<enableOutboundFaststart>false</enableOutboundFaststart>";
			sAXLRequest += "<codecForOutboundFaststart>G711 u-law 64K</codecForOutboundFaststart>";
			sAXLRequest += "<significantDigits  enable=\"false\">99</significantDigits>";
			sAXLRequest += "<calledPartyIENumberType>Cisco CallManager</calledPartyIENumberType>";
			sAXLRequest += "<callingPartyIENumberType>Cisco CallManager</callingPartyIENumberType>";
			sAXLRequest += "<calledNumberingPlan>Cisco CallManager</calledNumberingPlan>";
			sAXLRequest += "<callingNumberingPlan>Cisco CallManager</callingNumberingPlan>";
			sAXLRequest += "<tunneledProtocol>None</tunneledProtocol>";
			sAXLRequest += "<pathReplacementSupport>false</pathReplacementSupport>";
			sAXLRequest += "<remoteServerInfo>";
			sAXLRequest += "<server1>"+remoteHost+"</server1>";
			sAXLRequest += "</remoteServerInfo>";
			sAXLRequest += "<ictPassingPrecedenceLevelThroughUUIE>true</ictPassingPrecedenceLevelThroughUUIE>";
			sAXLRequest += "<ictSecurityAccessLevel>2</ictSecurityAccessLevel>";
			sAXLRequest += "</newTrunk>";
			
			sAXLRequest += "</axl:addH323Trunk></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
                
                
                
		public void addRouteGroup (String remoteNode, String nodeNum, String c)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRouteGroup xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";			
			
			sAXLRequest += "<newRouteGroup>";
			sAXLRequest += "<name>"+remoteNode+"_"+nodeNum+"_RG</name>";
			sAXLRequest += "<dialPlanWizardGenId>1</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member port=\"0\">";
			sAXLRequest += "<deviceSelectionOrder>1</deviceSelectionOrder>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<deviceName>"+remoteNode+"_"+nodeNum+"_"+c+"CMX</deviceName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newRouteGroup>";	
			
			sAXLRequest += "</axl:addRouteGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addRouteList (String remoteNode, String nodeNum)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRouteList xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";			
			
			sAXLRequest += "<newRouteList>";
			sAXLRequest += "<name>"+remoteNode+"_"+nodeNum+"_RL</name>";
			sAXLRequest += "<description>"+remoteNode+"_"+nodeNum+"_RL</description>";
			sAXLRequest += "<callManagerGroupName>Default</callManagerGroupName>";
			sAXLRequest += "<routeListEnabled>true</routeListEnabled>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member>";
			sAXLRequest += "<routeGroupName>"+remoteNode+"_"+nodeNum+"_RG</routeGroupName>";
			sAXLRequest += "<selectionOrder>1</selectionOrder>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<callingSearchSpace></callingSearchSpace>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<digitDiscardInstruction></digitDiscardInstruction>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<useFullyQualifiedCallingPartyNumber>Default</useFullyQualifiedCallingPartyNumber>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newRouteList>";	
			
			sAXLRequest += "</axl:addRouteList></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addRoutePatternBCP (String remoteNode, String nodeNum)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>"+nodeNum+"XX</pattern>";
			sAXLRequest += "<description>0</description>";
			sAXLRequest += "<usage>Route</usage>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<destination>";
			sAXLRequest += "<routeListName>"+remoteNode+"_"+nodeNum+"_RL</routeListName>";
			sAXLRequest += "</destination>";
			sAXLRequest += "<authorizationCodeRequired>false</authorizationCodeRequired>";
			sAXLRequest += "<authorizationLevelRequired>0</authorizationLevelRequired>";
			sAXLRequest += "<clientCodeRequired>false</clientCodeRequired>";
			sAXLRequest += "<isdnNSFInfoElement></isdnNSFInfoElement>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addRoutePattern></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}

		public void addRoutePattern1 (String remoteNode, String nodeNum)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>[2-8][0-1]XXXXXXXX</pattern>";
			sAXLRequest += "<description>0</description>";
			sAXLRequest += "<usage>Route</usage>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<destination>";
			sAXLRequest += "<routeListName>"+remoteNode+"_"+nodeNum+"_RL</routeListName>";
			sAXLRequest += "</destination>";
			sAXLRequest += "<authorizationCodeRequired>false</authorizationCodeRequired>";
			sAXLRequest += "<authorizationLevelRequired>0</authorizationLevelRequired>";
			sAXLRequest += "<clientCodeRequired>false</clientCodeRequired>";
			sAXLRequest += "<isdnNSFInfoElement></isdnNSFInfoElement>";
			sAXLRequest += "</newPattern>";
			

			sAXLRequest += "</axl:addRoutePattern></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
	
		public void addRoutePatternJNN (String remoteNode, String nodeNum)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>"+nodeNum+"[0-1]XX</pattern>";
			sAXLRequest += "<description>0</description>";
			sAXLRequest += "<usage>Route</usage>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<destination>";
			sAXLRequest += "<routeListName>" +remoteNode+ "_" +nodeNum+ "_RL</routeListName>";
			sAXLRequest += "</destination>";
			sAXLRequest += "<authorizationCodeRequired>false</authorizationCodeRequired>";
			sAXLRequest += "<authorizationLevelRequired>0</authorizationLevelRequired>";
			sAXLRequest += "<clientCodeRequired>false</clientCodeRequired>";
			sAXLRequest += "<isdnNSFInfoElement></isdnNSFInfoElement>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addRoutePattern></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
	
		public void addRoutePattern2 (String remoteNode, String nodeNum)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>[2-8][2-9]XXXXX</pattern>";
			sAXLRequest += "<description>0</description>";
			sAXLRequest += "<usage>Route</usage>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<destination>";
			sAXLRequest += "<routeListName>"+remoteNode+"_"+nodeNum+"_RL</routeListName>";
			sAXLRequest += "</destination>";
			sAXLRequest += "<authorizationCodeRequired>false</authorizationCodeRequired>";
			sAXLRequest += "<authorizationLevelRequired>0</authorizationLevelRequired>";
			sAXLRequest += "<clientCodeRequired>false</clientCodeRequired>";
			sAXLRequest += "<isdnNSFInfoElement></isdnNSFInfoElement>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addRoutePattern></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
	
//UPDATING THE ANNUNCIATOR//
                public void SQLupdateAnnunciator()
		{
		// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:executeSQLQuery xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest +=  "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest +=  " sequence=\"1234\">";
			
			sAXLRequest += "<sql>UPDATE Device SET Name='ANN_192.168.2', Description='ANN_192.168.2' WHERE Name='ANN_192.168.1'</sql>";

			sAXLRequest += "</axl:executeSQLQuery></SOAP-ENV:Body></SOAP-ENV:Envelope>";

			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
			
		public void addTransPattern1()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>9[0-4].!</pattern>";
			sAXLRequest += "<description>Block Unauthorized Precedence</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "<blockEnable>true</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
                        sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName></callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";			
			
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern2()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";	
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>90!</pattern>";
			sAXLRequest += "<description>Set Call Precedence to Flash Override</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>SET_FO</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
                        sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Flash Override</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName>90-94_Routes</callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern3()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>91!</pattern>";
			sAXLRequest += "<description>Set Call Precedence to Flash</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>SET_F</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
                        sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Flash</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName>90-94_Routes</callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";

			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern4()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>92!</pattern>";
			sAXLRequest += "<description>Set Call Precedence to Immediate</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>SET_I</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
                        sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Immediate</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName>90-94_Routes</callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern5()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>93!</pattern>";
			sAXLRequest += "<description>Set Call Precedence to Priority</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>SET_R</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
                        sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Priority</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName>90-94_Routes</callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern6()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>94!</pattern>";
			sAXLRequest += "<description>Set Call Precedence to Routine</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>SET_R</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
                        sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Routine</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName>90-94_Routes</callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern7()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>9[0-4].[2-8][2-9]XXXXX</pattern>";
			sAXLRequest += "<description>Set Callmanager Routes and PBX</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>90-94_Routes</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";	
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName></callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";

			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern8()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>9[0-4].[2-8][0-1]XXXXXXXX</pattern>";
			sAXLRequest += "<description>Set Callmanager Routes and PBX</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>90-94_Routes</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";	
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName></callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";
		
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addTransPattern9()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>9[0-4].9[0-1]X[2-8][0-1]XXXXXXXX</pattern>";
			sAXLRequest += "<description>Set Callmanager Routes and PBX</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>90-94_Routes</routePartitionName>";
			sAXLRequest += "<blockEnable>false</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";	
			sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>Default</patternPrecedence>";
			sAXLRequest += "<releaseCause>No Error</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName></callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";
			
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
                public void addSIPRRoutePartitions(String routePartitionName, String routePartitionDesc)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addRoutePartition xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += "sequence=\"1234\">";

			sAXLRequest += "<newRoutePartition>";
			sAXLRequest += "<name>"+routePartitionName+"</name>";
			sAXLRequest += "<description>"+routePartitionDesc+"</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<useOriginatingDeviceTimeZone>true</useOriginatingDeviceTimeZone>";
			sAXLRequest += "<timeZone>Greenwich Standard Time</timeZone>";
			sAXLRequest += "</newRoutePartition>";

			sAXLRequest += "</axl:addRoutePartition></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassAFlashOverrideCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_A_Flash_Override</name>";
			sAXLRequest += "<description>DRSN VoSIP - Flash Override</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_FO_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_F_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>Class_A_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"7\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"8\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassAFlashCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_A_Flash</name>";
			sAXLRequest += "<description>DRSN VoSIP - Flash</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_F_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>Class_A_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"7\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"8\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassAImmediateCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_A_Immediate</name>";
			sAXLRequest += "<description>DRSN VoSIP - Immediate</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>Class_A_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"7\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassAPriorityCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_A_Priority</name>";
			sAXLRequest += "<description>DRSN VoSIP - Priority</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>Class_A_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassARoutineCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_A_Routine</name>";
			sAXLRequest += "<description>DRSN VoSIP - Routine</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_A</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>Class_A_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassBFlashOverrideCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_B_Flash_Override</name>";
			sAXLRequest += "<description>Inter-Theater VoSIP - Flash Override</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_FO_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_F_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"7\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassBFlashCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_B_Flash</name>";
			sAXLRequest += "<description>Inter-Theater VoSIP - Flash</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_F_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"7\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassBImmediateCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_B_Immediate</name>";
			sAXLRequest += "<description>Inter-Theater VoSIP - Immediate</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassBPriorityCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_B_Priority</name>";
			sAXLRequest += "<description>Inter-Theater VoSIP - Priority</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassBRoutineCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_B_Routine</name>";
			sAXLRequest += "<description>Inter-Theater VoSIP - Routine</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_B</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassCFlashOverrideCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_C_Flash_Override</name>";
			sAXLRequest += "<description>Intra-Theater VoSIP - Flash Override</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_FO_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_F_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassCFlashCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_C_Flash</name>";
			sAXLRequest += "<description>Intra-Theater VoSIP - Flash</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_F_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"6\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassCImmediateCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_C_Immediate</name>";
			sAXLRequest += "<description>Intra-Theater VoSIP - Immediate</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_I_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"5\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassCPriorityCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_C_Priority</name>";
			sAXLRequest += "<description>Intra-Theater VoSIP - Priority</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_P_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"4\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassCRoutineCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_C_Routine</name>";
			sAXLRequest += "<description>Intra-Theater VoSIP - Routine</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>SET_R_Class_C</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>BLOCK</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassARoutesCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_A_Routes</name>";
			sAXLRequest += "<description>DRSN VoSIP Routes</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>Class_A_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member  index=\"2\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"3\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassBRoutesCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_B_Routes</name>";
			sAXLRequest += "<description>Intra-Theater VoSIP Routes</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member  index=\"1\">";
			sAXLRequest += "<routePartitionName>Class_B_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "<member index=\"2\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
		
		public void addClassCRoutesCSS()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addCSS xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			sAXLRequest += "<newCallingSearchSpace>";
			sAXLRequest += "<name>Class_C_Routes</name>";
			sAXLRequest += "<description>Intra-Theater VoSIP Routes</description>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<members>";
			sAXLRequest += "<member index=\"1\">";
			sAXLRequest += "<routePartitionName>Class_C_Routes</routePartitionName>";
			sAXLRequest += "</member>";
			sAXLRequest += "</members>";
			sAXLRequest += "</newCallingSearchSpace>";
			
			sAXLRequest += "</axl:addCSS></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}

                
                public void addTransPatternSIPR(String transPattern, String transDesc, String routePartName, String transPatternPrec, String cssName, String transPatternBlockEnable, String transPatternReleaseCause)
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:addTransPattern xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";
			
			sAXLRequest += "<newPattern>";
			sAXLRequest += "<pattern>"+transPattern+"</pattern>";
			sAXLRequest += "<description>"+transDesc+"</description>";
			sAXLRequest += "<usage>Translation</usage>";
			sAXLRequest += "<routePartitionName>"+routePartName+"</routePartitionName>";
			sAXLRequest += "<blockEnable>"+transPatternBlockEnable+"</blockEnable>";
			sAXLRequest += "<calledPartyTransformationMask></calledPartyTransformationMask>";
			sAXLRequest += "<callingPartyTransformationMask></callingPartyTransformationMask>";
			sAXLRequest += "<useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>";
			sAXLRequest += "<callingPartyPrefixDigits></callingPartyPrefixDigits>";
			sAXLRequest += "<dialPlan>";
			sAXLRequest += "<name>NANP</name>";
			sAXLRequest += "<description>North American Numbering Plan</description>";
			sAXLRequest += "</dialPlan>";
			sAXLRequest += "<dialPlanWizardGenId>0</dialPlanWizardGenId>";
			sAXLRequest += "<digitDiscardInstructionName>PreDot</digitDiscardInstructionName>";
                        sAXLRequest += "<messageWaiting>Lamp Off</messageWaiting>";
			sAXLRequest += "<networkLocation>OnNet</networkLocation>";
			sAXLRequest += "<patternUrgency>true</patternUrgency>";
			sAXLRequest += "<prefixDigitsOut></prefixDigitsOut>";
			sAXLRequest += "<callingLinePresentationBit>Default</callingLinePresentationBit>";
			sAXLRequest += "<callingNamePresentationBit>Default</callingNamePresentationBit>";
			sAXLRequest += "<connectedLinePresentationBit>Default</connectedLinePresentationBit>";
			sAXLRequest += "<connectedNamePresentationBit>Default</connectedNamePresentationBit>";
			sAXLRequest += "<supportOverlapSending>false</supportOverlapSending>";
			sAXLRequest += "<patternPrecedence>"+transPatternPrec+"</patternPrecedence>";
			sAXLRequest += "<releaseCause>"+transPatternReleaseCause+"</releaseCause>";
			sAXLRequest += "<allowDeviceOverride>false</allowDeviceOverride>";
			sAXLRequest += "<provideOutsideDialtone>false</provideOutsideDialtone>";
			sAXLRequest += "<callingSearchSpaceName>"+cssName+"</callingSearchSpaceName>";
			sAXLRequest += "</newPattern>";			
			
			sAXLRequest += "</axl:addTransPattern></SOAP-ENV:Body> </SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}

		public void updateMTPIOSsql()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:executeSQLQuery xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<sql>";
			sAXLRequest += "insert into device (pkid,Name,Description,tkModel,tkDeviceProtocol,tkProtocolSide,fkDevicePool,CtiID,tkClass,AddOnModules,";
			sAXLRequest += "DefaultDTMFCapability,tkProduct,DeviceLevelTraceFlag,AllowHotelingFlag,tkDeviceProfile,Unit,SubUnit,retryVideoCallAsAudio,tkStatus_MLPPIndicationStatus,";
			sAXLRequest += "tkPreemption,MLPPDomainID,tkStatus_CallInfoPrivate,tkStatus_BuiltInBridge,tkQSIG,tkDeviceSecurityMode,V150ModemRelayCapable,tkNetworkLocation,ignorePI,";
			sAXLRequest += "tkPacketCaptureMode,tkAuthenticationMode,tkCertificateStatus,tkKeySize,tkCertificateOperation,tkCertificate,Hlog,huntListForVM,tkStatus_DeviceMobilityMode,remoteDevice,msrepl_tran_version)";
			sAXLRequest += "values ('{116E0435-1132-116A-1135-11B0D2A483B5}','mtp001','mtp001','83','0','0','" +devicePooluuid+ "',";
			sAXLRequest += "'123456778','5','0','10','99','0','0','0','0','0','1','0','0','-1','2','2','4','1','0','0','0','0','1','1','2','1','0','1','0','2','0','{226E0435-2232-226A-2235-22B0D2A483B5}')";
			sAXLRequest += "</sql>";
			
			sAXLRequest += "</axl:executeSQLQuery></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}

                
        public void updateMTPSOFTsql()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:executeSQLQuery xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<sql>";
			sAXLRequest += "UPDATE Device SET Name='MTP_" +firstThree+ "', Description='MTP_" +firstThree+ "' WHERE Name='MTP_" +host+ "'";
			sAXLRequest += "</sql>";
			
			sAXLRequest += "</axl:executeSQLQuery></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
                
        public void updateANNsql()
		{
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:executeSQLQuery xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";

			sAXLRequest += "<sql>";
			sAXLRequest += "UPDATE Device SET Name='ANN_"+firstThree+"', Description='ANN_"+firstThree+"' WHERE Name='ANN_"+host+"'";
			sAXLRequest += "</sql>";
			
			sAXLRequest += "</axl:executeSQLQuery></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			connectAXL(sAXLSOAPRequest);
		}
                
        public void getDevicePool()
		{ 
                        Scanner keyboard = new Scanner(System.in);
                    
			// Build the HTTP Header
			sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll HTTP/1.1\r\n";
			sAXLSOAPRequest += "Host: " +host+ ":80\r\n";
			sAXLSOAPRequest += "Authorization: Basic "+new sun.misc.BASE64Encoder().encode(uidpwd.getBytes())+"\r\n";
			sAXLSOAPRequest += "Accept: text/*\r\n";
			sAXLSOAPRequest += "Content-type: text/xml\r\n";
			sAXLSOAPRequest += "Content-length: ";

			// Build the SOAP payload
			sAXLRequest = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" ";
			sAXLRequest += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> ";
			sAXLRequest += "<SOAP-ENV:Body> <axl:getDevicePool xmlns:axl=\"http://www.cisco.com/AXL/1.0\" ";
			sAXLRequest += "xsi:schemaLocation=\"http://www.gkar.cisco.com/schema/axlsoap.xsd\" ";
			sAXLRequest += " sequence=\"1234\">";


                        // Build the SOAP payload		
                        sAXLRequest += "<name>G.711 Device Pool</name> ";	
			
                        sAXLRequest += "</axl:getDevicePool></SOAP-ENV:Body></SOAP-ENV:Envelope>";
			
			// Find Content-length and attach to HTTP header
			sAXLSOAPRequest += sAXLRequest.length();
			sAXLSOAPRequest += "\r\n\r\n";
			
			//Adds the SOAP payload to the HTTP header, which completes the AXL SOAP request
			sAXLSOAPRequest += sAXLRequest;
			
			// Sends request to AXL server
			try 
		{
			socket = new Socket(host, 80);
			out = socket.getOutputStream();
			in = socket.getInputStream();
			
			// send the request to the host
			out.write(sAXLSOAPRequest.getBytes());
			
			// read the response from the host
			StringBuffer sb = new StringBuffer(10000);
			bArray = new byte[10000];
			int ch = 0;
			int sum = 0;
                        
			// output the response to the standard out
			while ( (ch = in.read(bArray)) != -1 )
			{
				sum += ch;
				sb.append(new String(bArray, 0, ch));			
			}
			
                        String trash = new String(bArray);

                        devicePooluuid = trash.substring(442,480);
                        
			socket.close();
			
			// output the response to the standard out
			System.out.println(sb.toString());
		} 
		
		catch (UnknownHostException e) 
		{
			System.err.println("Error connecting to host: " + e.getMessage());
			return;
		} 
		
		catch (IOException ioe)
		{
			System.err.println("Error sending/receiving from server: " + ioe.getMessage());
			
			// close the socket
			try
			{
				if (socket != null) socket.close();
			} 
			
			catch (Exception exc)
			{
				System.err.println("Error closing connection to server: " + exc.getMessage());
			}
			return;
		}
		}     

		
    @Override
    public void run() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
		
                
    
}
/*class SendMessage implements Runnable {
    @Override
    public void run() {
        ConfigCPNgui.jTextArea1.append("SendMessage Test");
    }
}*/
